/*
 * Created by SharpDevelop.
 * User:Krug
 * Date: 2009-7-18
 * Time: 20:27
 * 
 * 
 */
using System;
using Toyger.Common.UI;
using Toyger.Common.Connections;
using System.Windows.Forms;
using Toyger.Common.Interfaces;

namespace Toyger.Common.PlugIn
{
	/// <summary>
	/// Description of IDBManager.
	/// </summary>
	public interface IDBManager
	{
        /// <summary>
        /// Get specific <c>Control</c> to edit <c>ConnectionObject</c>.
        /// </summary>
        /// <param name="cObj">A <c>ConnectionObject</c> instance </param>
        /// <returns></returns>
        IConnectionEditor GetConnEditor(ConnectionObject cObj);

        ConnectionSession NewSession(ConnectionObject cObj);

        ConnObjPane GetConnObjPane(ConnectionObject cObj, IController controller);

        /// <summary>
        /// Create a default <c>ConnectionObject</c> instance.
        /// </summary>
        /// <returns></returns>
        ConnectionObject CreateDefaultConnectionObject();
    }
}
